package com.vending.mapper;

import com.vending.model.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface UserMapper {
    
    /**
     * 根据用户名查询用户
     */
    User selectByUsername(String username);
    
    /**
     * 新增用户
     */
    int insert(User user);
    
    int countAll();
    int countTodayNewUsers();
} 